using System;
using EFDemo.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;

namespace EFDemo.DbContext;

public class RecipeDbContext:Microsoft.EntityFrameworkCore.DbContext
{
    public DbSet<Recipe> Recipes { get; set; }
    public DbSet<RecipeTest> RecipeTests { get; set; }
    public DbSet<SamplePlan> SamplePlans { get; set; }
    public DbSet<WaferMap> WaferMaps { get; set; }
    
    protected override void OnConfiguring(DbContextOptionsBuilder options)
    { 
        options.UseSqlite("Data Source=/Users/32wudao/RiderProjects/EFCore/EFDemo/efdemo.db");
        options.LogTo(Console.WriteLine, Microsoft.Extensions.Logging.LogLevel.Information);
    }
}